#!/usr/bin/env bash
# 将执行目录移动到 当前文件所在目录
cd `dirname $0`

yum install -y nginx

# 设置为开机启动(2、3、4都是on代表开机自动启动)
systemctl list-unit-files | grep nginx
systemctl enable nginx.service

# 启动mysql
systemctl start nginx.service

cd -
